package 单例模式.懒汉式;

public class SingleCase {

    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            new Thread(()->{
                Single single1 = Single.getInstance();
                System.out.println("线程" + Thread.currentThread().getName()+"-----------"+single1);
            }).start();
        }
    }
}
